<script setup>
    import { useRouter } from "vue-router";
    const router=useRouter()
    const onClickLeft = ()=>{
        router.go(-1)
    }
</script>

<template>
    <div>
        <van-nav-bar title="我的学习卡" left-arrow @click-left="onClickLeft" />
        <div class="dv1">
            <img class="img1" src="https://wap.lexuemiao.com/img/empty.503e5ccb.png" alt="">
            <p class="p">暂无学习卡</p>
        </div>
        <button class="btn" @click="router.push('/exchange')">学习卡兑换</button>
    </div>
</template>

<style scoped>
.dv1 {
    text-align: center;
}

.img1 {
    width: 150px;
}

.p {
    font-size: 26px;
}
.btn{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #f15a24;
    color: #fff;
    border: none;
}
</style>
